package com.woniu.mapper;

import com.woniu.been.entity.CourseCategories;
import com.woniu.been.entity.Courses;
import com.woniu.been.entity.Teachers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseCategoriesMapper {

//    @Select("SELECT * FROM course_categories")
    List<CourseCategories> selectCourse(CourseCategories courseCategories);
    List<Courses> classcenter( );
    //
    List<CourseCategories> findAllCategoriess();
    CourseCategories findById(Integer id);
    int insertCategory(CourseCategories category);
    int updateCategory(CourseCategories category);
    int deleteCategory(Integer id);

    List<CourseCategories> findAllCategories();
    List<CourseCategories> findSubCategoriesByParentId(Integer parentCategoryId);
    Integer findCategoryIdByName(String categoryName);

}
